package demo

import (
	"fmt"
	"github.com/gin-gonic/gin"
)

func NewHelloService(ctx *gin.Context) *HelloService {
	return &HelloService{ctx: ctx}
}

type HelloService struct {
	ctx *gin.Context
}

func (s HelloService) SayHello(req *HelloRequest) string {
	return fmt.Sprintf("Hello %s !", req.Username)
}
